<template>
  <div id="app">
    <h3>案例：折叠面板</h3>
    <!-- 使用组件 -->
    <PannelL></PannelL>
    <PannelG></PannelG>

    <!-- 1. 单标签 -->
    <PannelG />
    <!-- 2. 双标签 -->

    <!-- 3. 小写标签 加 - 连接 -->
    <pannel-g> </pannel-g>
  </div>
</template>

<script>
// 导入
import Pannel from "./components/Pannel.vue";
import Pannel_1 from "./components/Pannel_1.vue";
export default {
  components: {
    PannelL: Pannel,
    Pannel_1,
  },
};
</script>

<style lang="less">
body {
  background-color: #ccc;

  #app {
    width: 400px;
    margin: 20px auto;
    background-color: #fff;
    border: 4px solid blueviolet;
    border-radius: 1em;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
    padding: 1em 2em 2em;

    h3 {
      text-align: center;
    }

    .title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid #ccc;
      padding: 0 1em;
    }

    .title h4 {
      line-height: 2;
      margin: 0;
    }

    .container {
      border: 1px solid #ccc;
      padding: 0 1em;
    }

    .btn {
      /* 鼠标改成手的形状 */
      cursor: pointer;
    }
  }
}
</style>
